package com.shuzu;

public class Shu {
    public static void main(String[] args) {
        int[] arr = {12, 34, 45, 23, 2341, 34, 56, 3, 2};
        int num = arr[0];
        for (int i = 1; i < arr.length; i++) {
            if (arr[i] > num) {
                num = arr[i];
            }
        }
        System.out.println(num);
    }
}
